package cn.edu.nju.software.greencreditsystem.domain;

import javax.persistence.*;
import java.sql.Date;

/**
 * 作者：何启睿
 * 创建时间：2011-8-14
 * 类描述：保存原始环境报表记录的类
 */
@Entity
@Table(name="environment_excel")
public class EnvironmentExcel
{
    private int id;
    private byte data[];
    private Date beginDate;
    private Date deadline;
    private Date submitDate;
    private boolean expired;
    private boolean checked;
    private boolean passed;

    @Id
    @GeneratedValue
    public int getId()
    {
        return id;
    }

    public void setId(int id)
    {
        this.id = id;
    }

    @Lob
    @Column(name="_data")
    public byte[] getData()
    {
        return data;
    }

    public void setData(byte data[])
    {
        this.data = data;
    }

    public Date getBeginDate()
    {
        return beginDate;
    }

    public void setBeginDate(Date beginDate)
    {
        this.beginDate = beginDate;
    }

    public Date getDeadline()
    {
        return deadline;
    }

    public void setDeadline(Date deadline)
    {
        this.deadline = deadline;
    }

    public Date getSubmitDate()
    {
        return submitDate;
    }

    public void setSubmitDate(Date submitDate)
    {
        this.submitDate = submitDate;
    }

    public boolean getChecked()
    {
        return checked;
    }

    public void setChecked(boolean checked)
    {
        this.checked = checked;
    }

    public boolean getPassed()
    {
        return passed;
    }

    public void setPassed(boolean passed)
    {
        this.passed = passed;
    }

    public boolean getExpired()
    {
        return expired;
    }

    public void setExpired(boolean expired)
    {
        this.expired = expired;
    }
}
